package com.xkstream.client.api;

import com.xkstream.client.base.BaseData;
import com.xkstream.client.entity.Admin;
import com.xkstream.client.entity.User;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by xiaoyi on 2017/8/24.
 */

public interface ChatroomService {
    /**
     * 获取房管列表
     */
    @FormUrlEncoded
    @POST(API.ADMIN_LIST)
    Observable<BaseData<List<Admin>>> getAdminList(@FieldMap Map<String, Object> params);

    /**
     * 设置撤销房管
     */
    @FormUrlEncoded
    @POST(API.SET_ADMIN)
    Observable<BaseData> setOrRemoveAdmin(@FieldMap Map<String, Object> params);

    /**
     * 临时禁言
     */
    @FormUrlEncoded
    @POST(API.SHUT_UP)
    Observable<BaseData> temporaryMute(@FieldMap Map<String, Object> params);

}
